package ru.ifmo.ctd.ngp.theory.xdivk.onemax;

import ru.ifmo.ctd.ngp.demo.ffchooser.switchpoint.RealFunctionImpl;

public class Y extends RealFunctionImpl {
	int length;
	
	public Y(int l)
	{
		length = l;
		return;
	}
	/**
	 * {@inheritDoc}
	 */
	@Override
	public double getValue(double y) {
		return length - y;
	}
	
	/**
	 * {@inheritDoc}
	 */
	@Override
	public boolean isConvex() {
		return false;
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public boolean isDownConvex() {
		return false;
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public String toString() {
		return "y";
	}
}
